<div class="tab_item" style="display: block">
    <div class="toolbar clearfix">
        <h3>分配明细</h3>
    </div>
    <div class="grid" style="height:345px;">
        <table id="page_table_box_${pid}"></table>
    </div>
</div>

<script>

    $(function () {
        $('#page_table_box_${pid}').datagrid({
                fit: true,
                width: '100%',
                height: '100%',
                striped: true,
                pagination: true,
                url: "${contextPath}/security/hdw/exchange_amount_money_divide_detail/page.htm?divideId=${id}",
                fitColumns: true,
                pageSize: 10,
                pageList: [10, 50, 100],
                idField: 'id',
                singleSelect: true,
                selectOnCheck: false,
                checkOnSelect: false,
                autoRowHeight: false,
                rowStyler: gridRowStyler,
                columns: [
                    [
                        {
                            title: '换电次数',
                            align: 'center',
                            field: 'amount',
                            width: 40
                        },
                        {
                            title: '机构类型',
                            align: 'center',
                            field: 'orgTypeName',
                            width: 40
                        },
                        {
                            title: '机构',
                            align: 'center',
                            field: 'orgIdName',
                            width: 40
                        },
                        {
                            title: '分配比例',
                            align: 'center',
                            field: 'percent',
                            width: 40,
                            formatter: function(val, row) {
                                return row.percent+"%"
                            }
                        }
                    ]
                ],
            onLoadSuccess: function () {
                $('#page_table_box_${pid}').datagrid('clearChecked');
                $('#page_table_box_${pid}').datagrid('clearSelections');
            }
        });
    });
</script>